String Array Activities
In a method public void practiceArrayStrings() do the following: (
- Create an array with 4 names.
- Have it print out every name on its own line saying Hello Jeff, Hello Omar, Hello Ben
- Have it print out the length of each name ( ie Jeff -> 4
letters
- [advanced] Have it say how many times the letter e is in each name (ie Jeff->
1 e) [hard, extra credit]
- Have it replace all the a and e with z.
- Have it print it out.
- [advanced] Have it reorder the words alphabetically using Sort
|